@extends('default.template')

@section('title',$result['title'])
<style scoped>
    .ad_img{
        width: 100%;
        margin-bottom:60px;
    }

    .news .list-group{
        width: 280px;
    }
    .news .list-group-item{
        height: 60px;
        border: none;
        border-bottom: 1px solid #a17656;
        margin-bottom: 0;
        font-size: 18px;
        color: #a17656;
        border-radius: 0 !important;

    }
    .news .list-group-item img{
        margin-right: 20px;
    }
    .news .list-group-item img:last-child{
        position: absolute;
        right: 0;
        top: calc(50% - 5px);
    }
    .news .list-group-item:hover{
        color: #a17656;
    }
    .news .list-group-item.active{
        background-color: #a17656 !important;
        border-color: #a17656 !important;
    }
    .news .list-group-item.active{
        height: 100px;
    }
    .news .list-group-item.active p{
        margin: 0;
        font-size: 20px;
    }
    .news .list-group-item.active p:first-child{
        margin-top: 8px;
        line-height: 36px;
        font-size: 20px;
    }
    .news .list-group-item.active:hover{
        color: white;
    }
    .news .bottom{
        height: 10px;
        background: #a17656;
        margin-top: 20px;
        padding: 0;

    }
    .news .bottom:hover{
        background: #a17656 !important;
    }
    .news-top-div{
        height: 76px;
        line-height: 76px;
        border-bottom: 4px solid #a17656;
    }
    .cate_name{
        font-size: 20px;
        color: #543e4e;
        height: 76px;
    }
    .breadcrumb{
        padding: 0 !important;
        background-color: unset !important;
    }
    .news nav{
        background: unset;
    }
    ol.breadcrumb,ol a{
        font-size: 14px;
        color: #a17656;
    }
    .news.list-group-item{
        width: 280px;
    }
    .news nav{
        width: unset;
    }
    .news{
        max-width: 1200px !important;
    }
    .news-top-div,.news-list-div{
        margin-left: 20px !important;
        padding: 0;
    }
    .news-top-div .col:first-child{
        padding-left: 10px;
    }

    .news-list-div .list-group-item{
        height: 140px;
        padding: 0;
        padding-left: 10px;

    }
    .news_date p{
        line-height: 24px;
        font-size: 20px;
        color: #a17656;
    }
    .news_date p:first-child{
        margin-top: 20px;
        line-height: 36px;
        margin-bottom: 0;
        font-size: 24px;
    }
    .detail{
        margin-left: 20px !important;
        margin-top: 30px;
    }
    .detail .title{
        line-height: 30px;
        font-size: 20px !important;
        color: #543e2e;
        font-weight: bold;
    }
    .detail .price{
        margin-top: 30px;
        line-height: 40px;
        font-size: 22px;
    }

    .detail .text{
        color: #a17656;
        font-size: 16px;
    }
    .detail .text:first-child{
        line-height: 30px;
    }
    .detail .text.describe{
        height: 170px;
        overflow: hidden;
    }
    .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
        background-color: #a17656 !important;
        color: white !important;
        height: 40px !important;
        border:none;
    }
    .detail-content{
        margin-left: 20px;
    }
    .detail-content .nav-tabs{
        border-bottom: 2px solid #a17656;
    }
    @media (min-width: 576px) {  }

    /*// Medium devices (tablets, 768px and up)*/
    @media (min-width: 768px) {  }

    /*// Large devices (desktops, 992px and up)*/
    @media (min-width: 992px) {  }

    /*// Extra large devices (large desktops, 1200px and up)*/
    @media (min-width: 1200px) {

    }
</style>
@section('template')
    <img class="ad_img" src="{{$result['ad'][0]->ad_value}}" alt="">
    <div class="container news">
        <div class="row">
            <div class="col-3">

                <div class="list-group">
                    <a href="#" class="list-group-item list-group-item-action flex-column align-items-start active">
                        <p>产品展示</p>
                        <p>PRODUCT</p>
                    </a>
                    @foreach($result['menu'] as $k=>$v)
                        <a href="../product?uid={{$v->uid}}" class="list-group-item list-group-item-action flex-column align-items-start">
                            <img src="../dot.png" alt="">{{$v->cate_name}}
                            <img class="" src="../more.png" alt="">
                        </a>
                    @endforeach
                    <div class="list-group-item list-group-item-action flex-column align-items-start bottom"></div>
                </div>
            </div>
            <div class="col-9">
                <div class="row  news-top-div">
                    <div class="col">
                        <nav aria-label="breadcrumb">
                            <ol class="breadcrumb">
                                当前位置：
                                <li class="breadcrumb-item"><a href="../news">新闻资讯</a></li>
                                @foreach(array_reverse($result['parent']) as $k=>$v)
                                    <li class="breadcrumb-item"><a href="../news?uid={{$v->uid}}">{{$v->cate_name}}</a></li>
                                @endforeach
                                <li class="breadcrumb-item active" aria-current="page">{{$result['detail'][0]->goods_name}}</li>
                            </ol>
                        </nav>
                    </div>
                </div>
                <div class="row detail">
                    <div class="col">
                        <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
                            <div class="carousel-inner">
                                <div class="carousel-item active">
                                    <img class="d-block w-100" src="../hezi.png" alt="First slide">
                                </div>
                                <div class="carousel-item">
                                    <img class="d-block w-100" src="../hezi.png" alt="Second slide">
                                </div>
                            </div>
                            <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
                                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                                <span class="sr-only">Previous</span>
                            </a>
                            <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
                                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                                <span class="sr-only">Next</span>
                            </a>
                        </div>
                    </div>
                    <div class="col">
                        <h5 class="title">{{$result['detail'][0]->goods_name}}</h5>
                        <h5 class="title price">建议零售价：{{$result['detail'][0]->goods_price}}</h5>
                        <p class="text">分类：{{$result['parent'][0]->cate_name}} </p>
                        <p class="text describe">{{$result['detail'][0]->goods_describe}}</p>
                    </div>
                </div>
                <div class="row">
                    <div class="col detail-content">
                        <ul class="nav nav-tabs" id="myTab" role="tablist">
                            <li class="nav-item">
                                <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">详情介绍</a>
                            </li>
                        </ul>
                        <div class="tab-content" id="myTabContent">
                            <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                                {!! $result['detail'][0]->goods_content !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


@endsection

